package cn.zhoutao.basic.base.mapper;

import cn.zhoutao.basic.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper <T>{
    List<T> loadAll();

    void save(T t);

    void update(T t);

    void deleteById(Long id);

    T loadById(Long id);

    //查询总条数
    Long queryCount(BaseQuery query);

    //查询当前页数据
    List<T> queryData(BaseQuery query);

    //批量删除
    void batchRemove(List<Long> ids);
}
